package com.hdl.school.schoolcontroller;
import android.os.Bundle;
import android.os.Looper;
import android.view.KeyEvent;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.hdl.school.utils.CardReaderManager;
import com.hdl.school.utils.USBSerialManager;

public class CardSlotActivity extends AppCompatActivity {
    private CardReaderManager cardReaderManager;
    public USBSerialManager usbSerialManager;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        cardReaderManager = CardReaderManager.getInstance();

        usbSerialManager = USBSerialManager.getInstence();

    }


    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        cardReaderManager.onKeyCode(keyCode);
        return super.onKeyDown(keyCode, event);
    }
}
